package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rei
 * Date: 2025-11-26
 * Time: 12:28
 */
import java.nio.file.Files;
import java.nio.file.Path;
import java.io.IOException;

public class NIO_test {
    public static void main(String[] args) {
        try {
            String content = Files.readString(Path.of("c:/temp/345.txt"));
            System.out.println(content);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
